/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bea.cliente.gui.builders;

import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.controls.console.builder.ConsoleBuilder;
import de.lessvoid.nifty.elements.Element;
import de.lessvoid.nifty.screen.Screen;

/**
 *
 * @author ivan
 */
public class DebugConsoleBuilder {

    public static Element build(Nifty nifty, Screen screen, Element parent) {
        Element console = null;
        // constroi o console
        console = new ConsoleBuilder("debugConsole") {

            {
                width(percentage(80));
                lines(25);
                alignCenter();
                valignCenter();
                visible(true);
                /**
                onStartScreenEffect(new EffectBuilder("move") {

                    {
                        length(150);
                        inherit();
                        neverStopRendering(true);
                        effectParameter("mode", "in");
                        effectParameter("direction", "top");
                    }
                });
                * **/
            }
        }.build(nifty, screen, parent);
        return console;
    }
}
